<template>
  <div id="Result">
    <div class="res-body">
      <div class="rb-header">
        <span>中奖名单</span>
        <i class="el-icon-refresh"></i>
      </div>
      <div class="rb-middle">
        <div class="mid-right">
          <button class="rbtn1">搜索</button>
          <button class="rbtn2">导出</button>
        </div>
      </div>
      <div class="rb-footer">
        <el-table :data="tableData" border style="width: 100%" height="50vh">
          <el-table-column prop="name" label="姓名" align="center">
          </el-table-column>
          <el-table-column prop="phone" label="联系方式" align="center">
          </el-table-column>
          <el-table-column prop="prize" label="所中奖品" align="center">
          </el-table-column>
          <el-table-column prop="time" label="日期" align="center">
          </el-table-column>
        </el-table>
      </div>
      <div class="rs-page">
        <div class="sp-left">
      		<span>共 {{totalAmount/10}}页</span>
      	</div>
      	<div class="sp-right">
      		<el-pagination
  					background
  					layout="prev, pager, next"
  					:total="totalAmount"
  				>
					</el-pagination>
      	</div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    data() {
      return {
      	totalAmount: 70,
        page: 1,
        //表格内容区域
        tableData: [{
          name: '张三',
          phone: 15920904569,
          prize: '宇宙飞船',
          time: '2018-06-10'
        }, {
          name: '张三',
          phone: 15920904569,
          prize: '宇宙飞船',
          time: '2018-06-10'
        }, {
          name: '张三',
          phone: 15920904569,
          prize: '宇宙飞船',
          time: '2018-06-10'
        }, {
          name: '张三',
          phone: 15920904569,
          prize: '宇宙飞船',
          time: '2018-06-10'
        }]
      }
    }
  }
</script>

<style scoped="scoped">
  #Result {
    width: 99%;
    height: 87vh;
    border: 1px solid #ccc;
    border-top: none;
    position: relative;
    overflow: auto;
  }
  .res-body .rb-header {
    height: 40px;
    line-height: 40px;
    padding-left: 15px;
  }
  .res-body .rb-header i {
    float: right;
    font-size: 26px;
    margin-right: 25px;
    margin-top: 7px;
  }
  .res-body .rb-header i:hover {
    color: rgb(22, 155, 213);
    cursor: pointer;
  }
  .res-body .rb-middle {
    height: 65px;
    line-height: 65px;
    overflow: hidden;
    position: relative;
    background-color: rgb(242, 242, 242);
  }
  .rb-middle .mid-right {
    position: absolute;
    right: 0;
    top: 0;
    margin-right: 20px;
  }
  .mid-right button {
    padding: 8px 40px;
    border-radius: 5px;
    font-size: 15px;
    margin-top: -6px;
    outline: none;
    cursor: pointer;
  }
  .mid-right .rbtn1 {
    border: none;
    background-color: rgb(22, 155, 213);
    color: #fff;
    margin-right: 15px;
  }
  .mid-right .rbtn2 {
    border: 1px solid #ccc;
    background-color: #fff;
  }
  .res-body .rb-footer {
    margin-left: 30px;
    margin-top: 5px;
    margin-right: 20px;
  }
  .res-body .rs-page {
    margin-top: 20px;
    margin-left: 40px;
    margin-right: 20px;
  }
  .rs-page span{
	font-size: 14px;
}
  .rs-page .sp-left{
	  float: left;
  }
  .rs-page .sp-right{
	  float: right;
  }
  .rs-page .sp-right input[type="text"]{
	  height: 25px;
	  line-height: 25px;
	  width: 60px;
	  text-align: center;
	  outline: none;
  }
  .rs-page .sp-right span:hover{
	  text-decoration: underline;
	  cursor: pointer;
  }
</style>